package com.shiyo.spring.basic_di.c_value_spel.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Value注入
 */
@Data
@Component
public class Blue {
    @Value("#{'blue-value-spel'}")
    private String name;

    @Value("#{2}")
    private int order;

    @Override
    public String toString() {
        return "Blue{" +
                "name='" + name + '\'' +
                ", order=" + order +
                '}';
    }
}
